import 'package:basic_common/app_theme.dart';
import 'package:basic_common/screen_helper.dart';
import 'package:flutter/material.dart';

/// 高亮模式
ThemeData lightTheme = ThemeData.light().copyWith(

    /// 图片颜色配置
    iconTheme: const IconThemeData(color: AppTheme.bluetextColor),

    /// 分割线颜色
    dividerColor: const Color(0xFFECECEC),

    /// 全局字体样式配置
    textTheme: TextTheme(
      bodyMedium: TextStyle(
          color: AppTheme.dartTextColor, fontWeight: FontWeight.w500, fontSize: ScreenHelper.sp(16)),
      bodySmall: TextStyle(color: Colors.grey, fontSize:  ScreenHelper.sp(14)),
      bodyLarge: TextStyle(
          color: Colors.blueGrey, fontSize:  ScreenHelper.sp(14), fontWeight: FontWeight.w400),
    ),
    inputDecorationTheme: const InputDecorationTheme(
        hintStyle: TextStyle(color: AppTheme.hintTextColor),
        counterStyle: TextStyle(color: AppTheme.hintTextColor),
        enabledBorder: InputBorder.none, // UnderlineInputBorder
        focusedBorder: InputBorder.none,), // UnderlineInputBorder, InputDecorationT
    /// 导航栏样式配置
    appBarTheme:  AppBarTheme(
        iconTheme:const IconThemeData(color: AppTheme.dartTextColor),
        backgroundColor: Colors.white70,
        centerTitle: true,
        elevation: 1.0,
        titleTextStyle: TextStyle(
            fontSize:  ScreenHelper.sp(16),
            fontWeight: FontWeight.w600,
            color: AppTheme.dartTextColor)), // TextStyle, AppBarTheme
    textButtonTheme: const TextButtonThemeData(
  
    ));

/// 暗黑模式
ThemeData darkTheme = ThemeData.dark().copyWith(

    /// 图片颜色配置
    iconTheme: const IconThemeData(color: Colors.white),

    /// 分割线颜色
    dividerColor: Colors.white,
  

    /// 全局字体样式配置
    textTheme: TextTheme(
      bodyMedium: TextStyle(
          color: AppTheme.dartTextColor, fontWeight: FontWeight.w600, fontSize:  ScreenHelper.sp(18)),
      bodySmall: TextStyle(color: Colors.white54, fontSize:  ScreenHelper.sp(14)),
      bodyLarge: TextStyle(
          color: AppTheme.dartTextColor, fontSize:  ScreenHelper.sp(15), fontWeight: FontWeight.w400),
          titleMedium: TextStyle(color: AppTheme.dartTextColor,fontSize: ScreenHelper.sp(16))
    ),
    
    
    inputDecorationTheme: const InputDecorationTheme(
        hintStyle: TextStyle(color: Colors.black),
        counterStyle: TextStyle(color: Colors.black),
      
        enabledBorder: UnderlineInputBorder(
            borderSide:
                BorderSide(color: Colors.black)), // UnderlineInputBorder
        focusedBorder: UnderlineInputBorder(
            borderSide: BorderSide(
                color:
                    Colors.black))), // UnderlineInputBorder, InputDecorationT
    /// 导航栏样式配置
    appBarTheme:  AppBarTheme(
        iconTheme: IconThemeData(color: Colors.white),
        backgroundColor: Colors.black54,
        centerTitle: true,
        elevation: 1.0,
        titleTextStyle: TextStyle(
            fontSize:  ScreenHelper.sp(18),
            fontWeight: FontWeight.w600,
            color: Colors.white)), // TextStyle, AppBarTheme
    textButtonTheme: const TextButtonThemeData());
